/**
 * Copyright &copy; 2016-2017 <a href="http://git.oschina.net/whoamien/backend_management">Backend Management</a> All rights reserved.
 */
package com.xw.app.service;

import java.util.List;

import com.xw.app.model.AcctRole;
import com.xw.app.model.SysMenu;
import com.xw.app.vo.MenuSelection;
import com.xw.framework.base.service.BaseService;
import com.xw.framework.vo.UserMenu;

/**
 * The Interface SysMenuService.
 *
 * @author Xi Wei
 */
public interface SysMenuService extends BaseService<SysMenu, Long> {

	/**
	 * Find by parent is null.
	 *
	 * @return the list
	 */
	public List<SysMenu> findByParentIsNull();

	/**
	 * Gets the all menu can have sub menu.
	 *
	 * @return the all menu can have sub menu
	 */
	public List<UserMenu> getAllMenuCanHaveSubMenu();

	/**
	 * Gets the all menu for assignment.
	 *
	 * @param roleId the role id
	 * @return the list
	 */
	public List<MenuSelection> GetAllMenuForAssignment(Long roleId);
	
	/**
	 * Update menu for role.
	 *
	 * @param checkedMenu the checked menu
	 * @param roleId the role id
	 */
	public void updateMenuForRole(String checkedMenu,Long roleId);
}
